import request from "@/utils/request";

export async function getList(params) {
  return request(`/ent/apply/list`, {
    method: "POST",
    body: {
      ...params
    }
  });
}

export async function detail(params) {
  return request(`/ent/apply/detail`, {
    method: "POST",
    body: {
      enterpriseNo:params.code
    }
  });
}

export async function withdraw(params) {
  return request(`/ent/apply/withdraw`, {
    method: "POST",
    body: params
  });
}

export async function repayment(params) {
  return request(`/ent/repayment/recharge`, {
    method: "POST",
    body: params
  });
}

export async function enterprise(params) {
  return request(`/account/enterprise/list`, {
    method: "POST",
    body: params
  });
}
